package com.xike.micromemberserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Note)实体类
 *
 * @author wusong
 * @since 2021-05-09 11:55:48
 */
@Data
@Builder
public class NoteEntity implements Serializable {
    @Tolerate
    public NoteEntity(){}
    private static final long serialVersionUID = -34886885024079808L;

    private int id;

    private int chapterId;

    private String content;

    private String memberUsername;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String status;



}
